<style>
.buttons{background-image:url(image/default/searchbutton.gif); margin:5px; width:76px; height:21px; border:0px; display:block; text-align:center; padding-top:5px; overflow:hidden; float:left;}
</style>
<div class="admin_right_top"><{$lang.mybuy}></div>
<table class="admin_table" border="0" cellspacing="1" align="center">
	<tr>
	  <td colspan="2" align="left" bgcolor="#FFFFFF" style="border-bottom:2px solid #FF9900;">
		  <{foreach item=list key=num from=$blist.process}>
		  <a href="<{$config.weburl}>/main.php?menu=<{$smarty.get.menu}>&action=m&m=product&s=admin_buyorder&status=<{$num}>"><{$list}></a>|
		  <{/foreach}>
	  </td>
   </tr>
<{foreach item=buylist from=$blist.list}>
<tr>
    <td align="center" bgcolor="#EFFAFE" width="100%">
    <table width="100%"  cellspacing="1" style="border:1px solid #999999;">
      <tr>
        <td colspan="7" style=" border-bottom: 1px dotted #999999;text-align:left;">
        <{$lang.ordid}>：<{$buylist.id}>
        <{if $buylist.status==1||$buylist.status==2}>
        	<img src="image/default/neworder.gif">
        <{/if}>
        <{$lang.ordertim}>：<{$buylist.creat_time|date_format}>
		卖家：<a target="_blank" href="<{$config.weburl}>/shop.php?uid=<{$buylist.seller_id}>"><{$buylist.company}></a>
        </td>
      </tr>
      <tr>
        <td width="400" colspan="5" bgcolor="#FFFFFF">
		
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <{foreach item=plist from=$buylist.product}>
			  <tr>
				<td style="border-top:1px solid #EFFAFE;" width="70">
				<a href="<{$config.weburl}>/?m=product&s=product_detail&id=<{$plist.pid}>">
					<{if $plist.pic}>
						<img src="uploadfile/product/<{$plist.pic}>" width="70" />
					<{else}>
						<img src="image/default/nopic.gif" width="70" />
					<{/if}>
				</a>
				</td>
				<td style="border-top:1px solid #EFFAFE;" width="200"><a href="<{$config.weburl}>/?m=product&s=product_detail&id=<{$plist.pid}>"><{$plist.name}></a></td>
				<td style="border-top:1px solid #EFFAFE;" width="100"><{$config.money}><{$plist.price|number_format:2}></td>
				<td style="border-top:1px solid #EFFAFE;"><{$plist.num}></td>
			  </tr>
			  <{/foreach}>
			</table>
        	
			
		</td>
        <td valign="top" bgcolor="#FFFFFF" width="80">
		<{$config.money}> <{$buylist.product_price+$buylist.logistics_price|number_format:2}><br /><{$lang.includedfreight}>
		</td>
        <td valign="top" align="center" bgcolor="#FFFFFF" width="200">
		<a href="main.php?menu=<{$smarty.get.menu}>&action=m&m=product&s=admin_orderdetail&id=<{$buylist.id}>&type=buy"><{$lang.orderoption}></a><br />
        <{$buylist.statu_text}><br />
		<{$buylist.next_action}><br />
		
		
       <{if $buylist.status==3}>
       <br /><a href="main.php?menu=<{$smarty.get.menu}>&action=m&m=product&s=admin_orderendapply&id=<{$buylist.id}>"><{$lang.applret}></a>
       <{/if}>
       <{if $buylist.status==0}>
	   <br /><a href="main.php?action=m&m=product&s=admin_buyorder&menu=trade&deid=<{$buylist.id}>"><{$lang.delete}></a>
	   <{/if}>
        </td>
      </tr>
    </table></td>
  </tr>	
  <{foreachelse}>
	  <tr>
	  <td colspan="3" bgcolor="#FFFFFF"><{$lang.noorder}></td>
	  </tr>
  <{/foreach}>  
     <tr>
       <td colspan="3" bgcolor="#EFFAFE"><div class="page"><{$blist.page}></div></td>
     </tr>
</table>
